package com.pb.wkflow.core.utils;

/**
 * @author 苗益辉
 * @date 2022/4/9 13:44
 */
public class ObjectUtils {

    private ObjectUtils() {

    }

    public static <T> boolean isNull(T o) {
        return null == o;
    }

    public static <T> boolean isNotNull(T o) {
        return null != o;
    }

    public static boolean equals(Object object1, Object object2) {
        if (object1 == object2) {
            return true;
        } else {
            return object1 != null && object1.equals(object2);
        }
    }
}
